cmake_minimum_required(VERSION 2.8.3)
project(insOdom)

set(CMAKE_CXX_STANDARD 11)

file(GLOB_RECURSE header_files *.h *.hpp)
file(GLOB_RECURSE source_files *.cpp)

file(GLOB ins_header_files 				*.h *.hpp)
file(GLOB ins_source_files 				*.cpp)
source_group("src"						FILES ${ins_header_files} ${ins_source_files})	

include_directories(src)
set(ROOT ${PROJECT_SOURCE_DIR})
set(EIGEN_Path ${ROOT}/3rdLib/eigen)
include_directories(${EIGEN_Path}/)

add_executable(insOdom src/ins.cpp src/integration.hpp src/measurement.hpp)

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
	link_directories(${ROOT}/build/Lib/Debug)
	link_directories(${ROOT}/build/Lib/Release)
	link_directories(${ROOT}/build/Lib/RelWithDebInfo)
	link_directories(${ROOT}/build/Lib/MinSizeRel)
	
else()
	message(STATUS "For Linux / unix, there is no lib file")
endif()
